﻿package com.dg.gaming.api.common.playerstate
{
	import com.dg.gaming.api.common.Game;
	import com.dg.gaming.api.common.Table;
	import com.dg.gaming.api.common.util.DGLabels;

	/**
	 * ...
	 * @author
	 */
	public class PlayerStateGameStarted extends PlayerState
	{

		public override function sit():PlayerState
		{
			return this;
		}

		public override function stand():PlayerState
		{
			return new PlayerStateViewing();
		}

		public override function start():PlayerState
		{
			return this;
		}

		public override function canSit(table:Table):Boolean
		{
			return false;
		}

		public override function canStand(table:Table):Boolean
		{
			return false;
		}

		public override function canStart(table:Table, game:Game):Boolean
		{
			return false;
		}

		public override function canOfferDrawResign():Boolean
		{
			return true;
		}

		/**
		 * @see com.dg.gaming.api.common.playerstate.PlayerState#intValue()
		 */
		public override function stringValue():String
		{
			return GAME_STARTED;
		}

		public override function toString():String
		{
			return DGLabels.getInstance().getValue("game.started");
		}


	}

}